<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="wangyiyun"></div>
    <br>
    <br>
    <br>
    <div id="chuchu"></div>
<script>
    var httpRequest = new XMLHttpRequest();
    httpRequest.open('GET', 'https://api.uomg.com/api/comments.163?format=text', true);
    httpRequest.send();
    httpRequest.onreadystatechange = function () {
        if (httpRequest.readyState == 4 && httpRequest.status == 200) {
            var res = httpRequest.responseText;
            console.log(res);
            var str_before = res.split('来自@')[0];
            var str_after = res.split('来自@')[1];
            document.getElementById("wangyiyun").innerHTML = str_before
            document.getElementById("chuchu").innerHTML = '评论来自： ' + str_after
        }
    };
</script>
</body>
</html>